#ifndef SMARTSORTFILTERPROXYMODEL_H
#define SMARTSORTFILTERPROXYMODEL_H

#include <QSortFilterProxyModel>
#include <QStringList>

class SmartSortFilterProxyModel : public QSortFilterProxyModel
{
    Q_OBJECT
public:
    explicit SmartSortFilterProxyModel(QObject *parent = 0);
signals:
    
public slots:
    void setFilter(const QString &str, const QString &fields);
    QVariant getValue(int row, int column);

protected:
    bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const;

private:
    QString currentFilter;
    QStringList filterFields;
};


#endif // SMARTSORTFILTERPROXYMODEL_H
